Recommend to use reason-language-server for emacs#617
Recommend to use reason-language-server for emacs#617jjlee wants to merge 1 commit intoreasonml:sourcefrom
Conversation
I don't know exactly what was meant by upgrading reason-mode to use reason-language-server so I removed that text. I'm pretty sure this wording is better than the status quo: even after hacking elisp and experimenting with merlin on the command line, I wasn't able to get it to recognize that my file was Reason code rather than OCaml. With LSP it seems to be working fine for me so far, using the spacemacs layer (aside from merlin still running and generating errors sometimes -- I'll try and find time to investigate how to kill that off and update the spacemacs layer later on).
|
Created this about the hang: jaredly/reason-language-server#423 |
|
By the way, for other struggling emacsers, I hacked lsp-mode.el as follows: And I think because I also seem to have a too-old flycheck for the lsp-mode I've got, I also had to comment out the In spacemacs (I'm on develop branch as of a few months ago, I think) I also had to run this, or else the errors from lsp shown in the buffer wouldn't update when I edited stuff:
With that, using |
|
I'm not an emacs user but this might be outdated. Is this still relevant? A resource from OCaml https://batsov.com/articles/2022/08/23/setting-up-emacs-for-ocaml-development/ |
Edit: Actually having clicked create on this PR after forgetting to yesterday, I remember that I have run into some trouble with the language server: it hangs on pasting text sometimes, I had to hack the lsp-mode.el source code to silence that for now. I'm trying to figure out why that happens, maybe I'll make some progress with that in the next few days...
I don't know exactly what was meant by upgrading reason-mode to use reason-language-server so I removed that text.
I'm pretty sure this wording is better than the status quo: even after hacking elisp and experimenting with merlin on the command line, I wasn't able to get it to recognize that my file was Reason code rather than OCaml. With LSP it seems to be working fine for me so far, using the spacemacs layer (aside from merlin still running and generating errors sometimes -- I'll try and find time to investigate how to kill that off and update the spacemacs layer later on).